<div class="toolbar-menu">
  <div>

  <!-- TRIGGER -->
  <button mat-button [matMenuTriggerFor]="menu" color="default" class="menu-toggle">
    <span>{{config.label}} <mat-icon class="menu-caret">arrow_drop_down</mat-icon> </span>
  </button>
  <mat-menu #menu="matMenu" overlapTrigger="false">
  
    <!-- OPTIONS-->
    <div >
      <button mat-menu-item *ngFor="let option of config.options" (click)="onClick(option);">
        <span>{{option}}</span>
      </button>
    </div>
  </mat-menu>

  </div>
</div>

